<?php

Raise::load('core.RaiseObject');

/**
 * RaiseImageResource class
 * Provides functionality for drawing an image
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package phpraise.core.image
 * @since 1.2
 * @abstract
 */
abstract class RaiseImageResource extends RaiseObject {

    /**
     * The internal image resource
     * @var resource
     */
    private $resource;

    /**
     * Get or set the internal image resource
     * @param resource $r (optional) Set the internal image resource
     * @return resource
     */
    protected function resource($r = null){
        if(func_num_args() == 1){
            $this->resource = $r;
        }
        return $this->resource;
    }
    
}